package com.teach.mapper;

import java.util.List;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.teach.entity.NewsClass;

public interface NewsClassMapper {
    int deleteByPrimaryKey(String newsClassId);

    int insert(NewsClass record);

    int insertSelective(NewsClass record);

    NewsClass selectByPrimaryKey(String newsClassId);

    int updateByPrimaryKeySelective(NewsClass record);

    int updateByPrimaryKey(NewsClass record);
    
    @Select("select * from news_class")
    @ResultType(NewsClass.class)
    List<NewsClass> listAll();
}